<?php
if( !defined('__ROOT__') ) exit('Load failed');
class UserGroupModel extends Model{
	private $table = 'user_group';

	public function __construct(){
		parent::__construct($this->table);
	}

	public function add_group($data){
		// Should do some data validation
		return $this->value($data)->add();	
	}

	public function get_all_group(){
		return $this->get();
	}
}
